"""tenpro URL Configuration

The `urlpatterns` list routes URLs to views.py. For more information please see:
    https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views.py
    1. Add an import:  from my_app import views.py
    2. Add a URL to urlpatterns:  path('', views.py.home, name='home')
Class-based views.py
    1. Add an import:  from other_app.views.py import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""

from django.urls import path
from apps.ten_brigin import views

urlpatterns = [




    path('recruits/search/recommend/', views.RecommendView.as_view()),
    path('recruits/search/latest/', views.LatestView.as_view()),


	# 推荐职位
	path('recruits/search/recommend/', views.RecommendView.as_view()),
	# 最新职位
	path('recruits/search/latest/', views.LatestView.as_view()),
	# 热门企业
	path('enterprise/search/hotlist/', views.EnterpriseView.as_view()),

	# 热门城市
	path('city/hotlist/', views.CityView.as_view()),

	# 热门城市
	path('city/hotlist/', views.CityView.as_view()),



	# 搜索职位
	path('recruits/search/city/keyword/', views.SearchView.as_view()),
	# 职位详情
	path('recruits/<int:id>/', views.DetailsView.as_view()),
	# 增加职位访问次数
	path('recruits/<int:id>/visit/', views.GetUsersView.as_view()),
	# 收藏职位
	path('recruits/<int:id>/collect/', views.CollectView.as_view()),
	# 取消收藏职位
	path('recruits/<int:id>/cancelcollect/', views.CancelcollectView.as_view()),
	# 企业详情
	path('enterprise/<int:id>/', views.ParticularsView.as_view()),
	# 增加企业访问次数
	path('enterprise/<int:id>/visit/', views.TutorialView.as_view()),
	# 收藏企业
	path('enterprise/<int:id>/collect/', views.CollectView2.as_view()),
	# 取消收藏企业

	path('enterprise/<int:id>/cancelcollect/', views.CancelcollectView2.as_view()),


	path('enterprise/<int:id>/cancelcollect/', views.CancelcollectView.as_view()),


]

